package com.mini.framework.communicate.mina.handler;

import org.apache.mina.core.session.IoSession;

import com.mini.framework.communicate.mina.Sender;
import com.mini.framework.communicate.mina.protocol.Msg;

public class SenderAdapter implements Sender{
	
	private IoSession session;
	
	public SenderAdapter(IoSession session){
		this.session = session;
	}
	
	public void send(Msg msg){
		session.write(msg);
	}
	
	public boolean isSessionClose(){
		return session.isClosing();
	}

}
